package org.com.yz.dal.dao.model;

import java.io.Serializable;

import com.baomidou.mybatisplus.enums.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import java.io.Serializable;

/**
 * <p>
 * 商户信息表
 * </p>
 *
 * @author wzc123
 * @since 2018-08-01
 */
public class Mch extends Model<Mch> {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @TableId(value = "id_mch", type = IdType.AUTO)
    private Integer idMch;
    /**
     * 商户号
     */
    @TableField("mch_no")
    private String mchNo;
    /**
     * 商户名称
     */
    @TableField("mch_name")
    private String mchName;
    /**
     * 联系人姓名
     */
    @TableField("link_name")
    private String linkName;
    /**
     * 联系人电话
     */
    @TableField("link_phone")
    private String linkPhone;
    /**
     * 连续人邮箱
     */
    @TableField("link_email")
    private String linkEmail;
    @TableField("busi_license_no")
    private String busiLicenseNo;
    @TableField("busi_license_img")
    private String busiLicenseImg;
    /**
     * 创建时间
     */
    @TableField("create_time")
    private Date createTime;
    @TableField("update_time")
    private Date updateTime;
    /**
     * (payment)支付通道卡号,(excess)超额提现银行卡号
     */
    private String channel;
    /**
     * 银行卡号
     */
    private String bankcard;

    private int fixedPoundage;//固定手续费

    private String rate;//提现费率

    private String accType;//支付通道（微信/支付宝）

    private String accMchId;//支付通道商户号


    public Integer getIdMch() {
        return idMch;
    }

    public void setIdMch(Integer idMch) {
        this.idMch = idMch;
    }

    public String getMchNo() {
        return mchNo;
    }

    public void setMchNo(String mchNo) {
        this.mchNo = mchNo;
    }

    public String getMchName() {
        return mchName;
    }

    public void setMchName(String mchName) {
        this.mchName = mchName;
    }

    public String getLinkName() {
        return linkName;
    }

    public void setLinkName(String linkName) {
        this.linkName = linkName;
    }

    public String getLinkPhone() {
        return linkPhone;
    }

    public void setLinkPhone(String linkPhone) {
        this.linkPhone = linkPhone;
    }

    public String getLinkEmail() {
        return linkEmail;
    }

    public void setLinkEmail(String linkEmail) {
        this.linkEmail = linkEmail;
    }

    public String getBusiLicenseNo() {
        return busiLicenseNo;
    }

    public void setBusiLicenseNo(String busiLicenseNo) {
        this.busiLicenseNo = busiLicenseNo;
    }

    public String getBusiLicenseImg() {
        return busiLicenseImg;
    }

    public void setBusiLicenseImg(String busiLicenseImg) {
        this.busiLicenseImg = busiLicenseImg;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    public String getChannel() {
        return channel;
    }

    public void setChannel(String channel) {
        this.channel = channel;
    }

    public String getBankcard() {
        return bankcard;
    }

    public void setBankcard(String bankcard) {
        this.bankcard = bankcard;
    }


    public int getFixedPoundage() {
        return fixedPoundage;
    }

    public void setFixedPoundage(int fixedPoundage) {
        this.fixedPoundage = fixedPoundage;
    }

    public String getRate() {
        return rate;
    }

    public void setRate(String rate) {
        this.rate = rate;
    }

    public String getAccType() {
        return accType;
    }

    public void setAccType(String accType) {
        this.accType = accType;
    }

    public String getAccMchId() {
        return accMchId;
    }

    public void setAccMchId(String accMchId) {
        this.accMchId = accMchId;
    }

    @Override
    protected Serializable pkVal() {
        return this.idMch;
    }

    @Override
    public String toString() {
        return "Mch{" +
        "idMch=" + idMch +
        ", mchNo=" + mchNo +
        ", mchName=" + mchName +
        ", linkName=" + linkName +
        ", linkPhone=" + linkPhone +
        ", linkEmail=" + linkEmail +
        ", busiLicenseNo=" + busiLicenseNo +
        ", busiLicenseImg=" + busiLicenseImg +
        ", createTime=" + createTime +
        ", updateTime=" + updateTime +
        ", channel=" + channel +
        ", bankcard=" + bankcard +
        "}";
    }
}
